home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 23 / CU Amiga - Super CD-ROM 23 (June 1998).iso / CUCD / Programming / OUI / scroller.cc < prev    next >
Encoding:
C/C++ Source or Header  |  1998-04-08  |  922 b   |  31 lines

  1. // $Id: scroller.cc 1.2 1997/07/14 04:23:32 dlorre Exp dlorre $
  2.  
  3. #include <exec/lists.h>
  4. #include <libraries/gadtools.h>
  5.  
  6. #include "gadgets/scroller.h"
  7. #include "gadgetlist.h"
  8.  
  9. #include <proto/gadtools.h>
  10.  
  11. // ========================================================================
  12. // ==========================  SCROLLER CLASS =============================
  13. // ========================================================================
  14.  
  15.  
  16. scroller::scroller(gadgetlist *gl,
  17.                    void (window::*func)(gadget *, unsigned long, unsigned short),
  18.                    long top, long view, long total,
  19.                    unsigned short arrows) : gadget(gl, func)
  20. {
  21.    gad = gl->gad = CreateGadget(SCROLLER_KIND, gl->gad, gl->ng,
  22.             GTSC_Top,   top,
  23.             GTSC_Total, total,
  24.             GTSC_Visible,   view,
  25.             GTSC_Arrows,    arrows,
  26.             GT_Underscore,  '_',
  27.             TAG_END) ;
  28. }
  29.  
  30.  
  31.